<?php

// Dodgy hack to setup the global blog instance - see MDL-13808 for the proposed solution

include_once($CFG->dirroot.'/mod/resourcepage/lib.php');

/*
 * eTexts Cron
 */
// How often should the cron run
$settings->add(new admin_setting_configtext('etexts_cron_frequency', get_string('etexts_cron_frequency', 'resourcepage'),
                   get_string('etexts_cron_frequency_config', 'resourcepage'), 14400, PARAM_INT));

// When is the earliest that cron jobs should run?
$settings->add(new admin_setting_configtext('etexts_cron_window_start', get_string('etexts_cron_window_start', 'resourcepage'),
                   get_string('etexts_cron_window_start_config', 'resourcepage'), 1, PARAM_INT));
                   
// When is the latest that cron jobs should run?
$settings->add(new admin_setting_configtext('etexts_cron_window_end', get_string('etexts_cron_window_end', 'resourcepage'),
                   get_string('etexts_cron_window_end_config', 'resourcepage'), 6, PARAM_INT));     
                       
?>